package com.lc.hongtai.conn;

import com.google.gson.Gson;
import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 4/11/2016.
 */
@HttpInlet("user/change_mobile")
public class JsonChangemobile extends HYAsyGet<JsonChangemobile.Info>{
    public String access_token,uid,txtCode,codeId;

    public static  String changeurl;

    public JsonChangemobile(String access_token, String uid,  AsyCallBack asyCallBack) {
        super(asyCallBack);
        this.access_token = access_token;
        this.uid = uid;

    }


    @Override
    protected Info parser(JSONObject object) {

     /*   Log.d(object.toString(),"");

        if (object.optString("status").equals("1")) {

            TOAST = "验证成功！";

            return "";

        }

        TOAST = object.optString("tips");

        return null;*/

        Info info=new Info();
        Gson gson=new Gson();
        info=gson.fromJson(object.toString(),Info.class);
        changeurl=info.url;


        return info;


    }

    public class Info{
        public String url;
        public String status;

    }


}
